﻿using Models;
using SqlSugar;

namespace BLL
{
   public partial class NewsTypeBLL 
    {
        public void joinselect()
        {
            var list = Db.Queryable<NewsType,NewsContent>((st, sc) => new object[] {
        JoinType.Left,st.id==sc.newsTypeid})
        .Select((st, sc) => new { Id = st.id, Name = st.typeName, SchoolName = sc.newsImage}).ToList();

        }
    }
}
